<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <title th:text="${pageTitle}"></title>
    <link rel="stylesheet" type="text/css" th:href="@{{path}/common/webuploader/webuploader.css?v={v}(v=${v},path=${staticPath})}"/>
    <meta http-equiv="Content-Type" content="multipart/form-data; charset=utf-8" />
    <div data-th-replace="layout/head-top"></div>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInLeft">
        <div data-th-replace="common/functionDepict"></div>
        <div>
            <div class="row">
                <div class="pt10">
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>填写基本信息</h5>
                            </div>
                            <form  method="post" id="importExcelFrom"  enctype="multipart/form-data">
                                <div class="ibox-content">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label text-right">模板</label>
                                            <div class="col-sm-9">
                                                <p>
                                                    <a th:href="@{/admin/user/cus/downloadTemplate}">
                                                        <button class="btn btn-primary " type="button">
                                                            <i class="fa fa-image"></i>&nbsp;点击下载模板
                                                        </button>
                                                    </a>
                                                    <span class="ml10">
                                                        <small class="fs12 c-red">
                                                            <i class="fa fa-lightbulb-o"></i>
                                                            你可下载系统设定好的学员信息模板，输入内容后再上传
                                                        </small>
                                                    </span>
                                                </p>
                                                <p><small class="fs12 c-orange">提示：手机号为必填项且不可重复；账号、邮箱可不填写但不能重复；密码可不填写，默认为111111</small></p><br>
                                                <p><small class="fs12 c-orange">指定导入学员的专业/科目后才可上传文件</small></p>
                                            </div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 导入学员</label>
                                            <div class="col-sm-9">
                                              <!--  <p>-->
                                                    <div id="uploader" class="wu-example">
                                                        <!--用来存放文件信息-->
                                                        <div id="thelist" class="uploader-list"></div>
                                                        <div>
                                                            <div id="picker" class="inline"> <i class="fa fa-file-excel-o"></i> &nbsp;选择excel文件</div>
                                                            <button class="btn btn-primary vam" type="button" id="add-subject" style="vertical-align: text-bottom;margin-left: 30px;">批量指定学员专业/科目</button>
                                                            <button id="ctlBtn" class="btn  btn-primary m-l-lg" disabled type="button" style="vertical-align: text-bottom;">开始上传</button>
                                                            <input type="hidden" id="subjectIds" name="subjectIds" value=""/>
                                                        </div>
                                                    </div>
                                                <!--<button class="btn btn-primary id="uploader" class="wu-example"" id="picker" type="button"><i class="fa fa-file-excel-o"></i> &nbsp;选择excel文件</button>
                                                <span class="ml10"><small class="fs12 c-red"><i class="fa fa-lightbulb-o"></i> 如未有对应excel文件，请去资源管理上传后再选择</small></span>-->
                                                <!--</p>-->
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div data-th-replace="layout/head-footer"></div>
                </div>
            </div>
        </div>
    </div>
    <script th:src="@{{path}/common/webuploader/webuploader.js?v={v}(v=${v},path=${staticPath})}"></script>
    <script type="text/javascript" th:src="@{{path}/admin/business/user/user/students_sys_import.js?v={v}(path=${staticPath},v=${v})}"> </script>
</body>
</html>
